
// const { Sequelize, DataTypes } = require("sequelize");
const { STRING, INTEGER, BOOLEAN } = require('../types')

module.exports = (sequelize) => {
  const record = sequelize.define(
    'record',
    {// 在这里定义模型属性
      id: {
        type: INTEGER,
        primaryKey:true,
        autoIncrement:true,
        allowNull:false
      },
      no: {
        type: STRING,
      },
      room: {
        type: STRING,
      },
      username: {
        type: STRING,
      },
      phone: {
        type: STRING,
      },
      age: {
        type: STRING,
      },
      desc: {
        type: STRING,
      },
      type: {
        type: STRING,
      },
      group: {
        type: STRING,
      },
      volume: {
        type: STRING,
      },
      volume: {
        type: STRING,
      },
      distribute: {
        type: STRING
      },
      price: {
        type: STRING
      }
    },
    {
    tableName: "record",//直接提供表名
    timestamps: false
   }
  );
  return record
}
